{% extends "base.html" %}
{% load i18n %}
{% block content %}

<div id="show-activity">
	<h1>{{activity}}</h1>
	<h2>{{activity.subject}}</h2>
	<p>{{activity.description}}</p>
	
	{% for activity_unit in activity.items.all %}
		{% ifequal activity_unit.content_type.model "resource" %}
			<h3>{{activity_unit.order}} - {{activity_unit.item.title}} (Resource)</h3>
			<p>
			{{activity_unit.item.description}}<br />
			<a href="{{activity_unit.item.content_url}}"><img alt="{% trans "Play this Resource" %}" src="{{MEDIA_URL}}img/icons/play.png" class="button"/></a> <a href="{{activity_unit.item.content_url_path}}"><img src="{{MEDIA_URL}}img/icons/folder.png" class="button" alt="{% trans "See Resource Folder" %}"/></a>
			</p>
		{% else %}
			<h3>{{activity_unit.item.title}} (Exercise)</h3>
		{% endifequal %}
	{% endfor %}
</div>

{% endblock %}